/* 自定义样式 - 仅保留无法用 Tailwind 实现的样式 */

:root {
    --primary-color: #4a8cff;
}

/* 滑块样式 - 需要自定义样式 */
.slider-wrapper input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 3px;
    background: #333;
}

.slider-wrapper input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
}

.slider-wrapper input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
}

/* 颜色范围滑块样式 */
.range-slider {
    -webkit-appearance: none;
    appearance: none;
    height: 25px;
    cursor: pointer;
    z-index: 1;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 15px;
    height: 25px;
    background: #fff;
    border-radius: 3px;
    cursor: ew-resize;
    box-shadow: 0 0 3px rgba(0,0,0,0.3);
    border: 1px solid #ccc;
    transition: all 0.2s ease;
}

.range-slider::-webkit-slider-thumb:hover {
    background: #f0f0f0;
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
    transform: scale(1.1);
}

.range-slider::-webkit-slider-thumb:active {
    background: #e0e0e0;
    transform: scale(1.2);
}

.range-slider::-moz-range-thumb {
    width: 15px;
    height: 25px;
    background: #fff;
    border-radius: 3px;
    cursor: ew-resize;
    border: 1px solid #ccc;
    box-shadow: 0 0 3px rgba(0,0,0,0.3);
    transition: all 0.2s ease;
}

.range-slider::-moz-range-thumb:hover {
    background: #f0f0f0;
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
    transform: scale(1.1);
}

.range-slider::-moz-range-thumb:active {
    background: #e0e0e0;
    transform: scale(1.2);
}

/* 为不同滑块添加不同的颜色标识 */
#colorSlider1::-webkit-slider-thumb {
    background: #4a8cff;
    border: 2px solid #fff;
}

#colorSlider2::-webkit-slider-thumb {
    background: #ff6b4a;
    border: 2px solid #fff;
}

#colorSlider1::-moz-range-thumb {
    background: #4a8cff;
    border: 2px solid #fff;
}

#colorSlider2::-moz-range-thumb {
    background: #ff6b4a;
    border: 2px solid #fff;
}

/* 选择框样式优化 */
select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 12px;
    padding-right: 30px;
}

/* 隐藏滚动条但保持滚动功能 */
.left-panel, .right-panel {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.left-panel::-webkit-scrollbar, .right-panel::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* 文件输入隐藏 */
input[type="file"] {
    display: none;
}

/* 加载动画 */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* 标签页活动状态下的下划线 */
.tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

/* 标签页内容显示/隐藏 */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab.active {
    color: #fff;
}

/* 设置按钮动画 */
.settings-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.settings-button:hover::before {
    width: 200px;
    height: 200px;
}

/* 设置模态框显示/隐藏 */
.settings-modal.show {
    display: flex;
    visibility: visible;
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.settings-modal.show .settings-modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.8);
}

/* 设置标签页内容显示/隐藏 */
.settings-tab-content {
    display: none;
}

.settings-tab-content.active {
    display: block;
}

/* 隐藏设置内容区域的滚动条 */
.settings-content {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.settings-content::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* 设置侧边栏活动状态 */
.settings-sidebar-item.active {
    background: rgba(74, 140, 255, 0.1);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

/* 响应式滑块 */
@media (max-width: 768px) {
    .range-slider {
        height: 35px;
        padding: 8px 0;
        margin: -8px 0;
    }
    
    .range-slider::-webkit-slider-thumb {
        width: 20px;
        height: 35px;
    }
    
    .range-slider::-moz-range-thumb {
        width: 20px;
        height: 35px;
    }
}

